const fs = require('fs');
const readline = require('readline');

const rl = readline.createInterface({
    input: fs.createReadStream('./files/input1.txt'),
    prompt: '请输入> ',
    crlfDelay: Infinity
});

rl.on('line', (line) => {
    console.log(`文件中的每一行: ${line}`);
});